<!--[if !$tag_use_ajax]-->
<h4><!--[gt text="Full tags list" domain="crpTag"]--></h4>
<div class="z-formrow">
  	<label for="taglist"><!--[gt text="Tags (comma separated)" domain="crpTag"]--></label>
	<input id="taglist" class="z-form-text" type="text" name="taglist" maxlength="128" size="48" value="<!--[$tagString]-->" />
</div>
<!--[else]-->
<!--[pnajaxheader modname="crpTag" filename=crptag.js nobehaviour=true]-->
<!--[pnpageaddvar name="javascript" value="modules/crpTag/pnjavascript/textboxlist.js"]-->
<!--[pnpageaddvar name="javascript" value="modules/crpTag/pnjavascript/taglist.js"]-->
<!--[pnpageaddvar name="stylesheet" value="modules/crpTag/pnstyle/taglist.css"]-->

<h4><!--[gt text="Full tags list" domain="crpTag"]--></h4>
<div id="crptag-container" class="z-formrow">
	<div id="crptag-list" class="input-text">
      <label for="crptag-demo"><!--[gt text="Tags (comma separated)" domain="crpTag"]--></label>
      <input id="crptag-demo" type="text" name="taglist" value="" />
      <div id="crptag-auto">
        <div class="default"><!--[gt text="Type some chars and already used tags will be suggested" domain="crpTag"]--></div> 
        <ul id="tagfeed" class="feed">
        	<!--[foreach item=tag from=$tagNameArray name=tagged]-->
					<li value="<!--[$tag]-->"><!--[$tag]--></li>
					<!--[/foreach]-->
        </ul>
      </div>
	</div>
</div>

<script type="text/javascript">
	Event.observe(window, 'load', function(){crpTagFormInit();}, false);
</script>
<!--[/if]-->